export type Status = 0 | 1
export interface IParams {
  page: number
  pageSize: number
  hoscode?: string
  hosname?: string
  hostype?: string
  status?: Status
  provinceCode?: string
  cityCode?: string
  districtCode?: string
}

export interface IhospitalItem {
  id: string
  createTime: string
  param: {
    hostypeString: string
    fullAddress: string
  }
  hoscode: string
  hosname: string
  provinceCode: string
  cityCode: string
  districtCode: string

  logoData: string

  status: Status
}

export type IhospitalList = IhospitalItem[]

export interface IhospitalListRes {
  totalElements: number
  content: IhospitalList
}

// 省/市/区数据接口
export interface IresItem {
  name: string
  value: string
}

export type IresList = IresItem[]

//医院详情接口
export interface Ihospital {
  bookingRule?: {
    cycle: number
    releaseTime: string
    stopTime: string
    quitDay: number
    quitTime: string
    rule: string[]
  }
  hospital?: {
    id: string
    createTime: string
    updateTime: string
    param: {
      hostypeString: string
      fullAddress: string
    }
    hoscode: string
    hosname: string
    hostype: string
    provinceCode: string
    cityCode: string
    districtCode: string
    address: string
    logoData: string
    intro: string
    route: string
    status: Status
  }
}

// 科室数据的类型
export interface Idep {
  depcode: string
  depname: string
  children: IdepList
  disabled?: boolean
}
export type IdepList = Idep[]

// 排班规则的类型

export interface IScheduleRuleItem {
  workDate: string
  dayOfWeek: string
  reservedNumber: number
  availableNumber: number
}
export type IScheduleRuleList = IScheduleRuleItem[]
export interface IScheduleRule {
  total: number
  bookingScheduleList: IScheduleRuleList
  baseMap: {
    hosname: string
  }
}

// 排班详情数据类型
export interface IsheduleDetail {
  id: string

  depcode: string
  title: string

  skill: string
  workDate: string

  reservedNumber: number
  availableNumber: number
  amount: number
}

export type IscheduleDetailList = IsheduleDetail[]
